﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NumberQuery.aspx.cs" Inherits="Web.seatservices.NumberQuery"  MasterPageFile="~/Index.Master"%>

<%@ Register Src="~/controls/message.ascx" TagName="message" TagPrefix="uc" %>
<%@ Register Src="~/Controls/GVPageManager.ascx" TagPrefix="ui" TagName="gv" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <form id="form1" runat="server">
        <div class="content-box">
            <!-- Start Content Box -->
            <div class="content-box-header">
                <h3>
                    号码查询</h3>
                <%--<ul class="content-box-tabs">
                    <li><a id="a_tab1" href="employee.aspx">成员管理</a></li>
                    <li><a id="a_tab2" href="#tab2" class="default-tab">添加成员</a></li>
                </ul>--%>
                <div class="clear">
                </div>
            </div>
            <div class="content-box-content">
                <div class="tab-content default-tab" id="tab1" runat="server" >
                <div class="form">
                        <fieldset>
                            <uc:message ID="u_message" Visible="false" runat="server" />

                            <p>
                                <label>
                                   请输入用户名和密码(这里模拟IVR提交给集团通讯系统的接口)</label>
                                    </p>

                            <p>
                                <label>
                                    用户名</label>
                                <asp:TextBox ID="txb_username" CssClass="text-input small-input" runat="server"></asp:TextBox>
                            </p>
                            <p>
                                <label>
                                    密码</label>
                                <asp:TextBox ID="txb_pwd" TextMode="Password" CssClass="text-input small-input" runat="server"></asp:TextBox>
                            </p>
                            
                            <p>
                                <asp:Button ID="btn_save" CssClass="button" runat="server" Text="提交" 
                                    onclick="btn_save_Click" />
                                </p>
                        </fieldset>
                        <div class="clear">
                        </div>
                    </div>
                </div>

                <div class="tab-content default-tab" id="tab2" runat="server"  visible="false">
                    <uc:message ID="Message1" Visible="false" runat="server" />
                    <asp:GridView ID="GridView1" AutoGenerateColumns="False" runat="server"
                    >
                        <Columns>
                            <asp:BoundField DataField="employeeid" HeaderText="用户编号" SortExpression="userid" />
                            <asp:BoundField DataField="employeename" HeaderText="姓名" />
                            <asp:BoundField DataField="departmentid" Visible="false" HeaderText="部门" />
                            <asp:BoundField DataField="age" HeaderText="年龄" />
                            <asp:BoundField DataField="mobile" HeaderText="手机" />
                            <asp:BoundField DataField="phone" HeaderText="电话" />
                            <asp:BoundField DataField="email" HeaderText="电子邮件" />
                            <asp:BoundField DataField="fax" HeaderText="传真" />
                            <asp:BoundField DataField="duty" HeaderText="职务" />
                            <asp:BoundField DataField="qq" HeaderText="QQ" />
                            <asp:BoundField DataField="msn" HeaderText="MSN" />
                            <%--<asp:TemplateField HeaderText="用户类型">
                                <ItemTemplate>
                                    <asp:Label ID="Label1" Text='<%#Eval("usertype").ToString() == "0"?"超级管理员":"普通管理员" %>' runat="server"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>--%>
                            <asp:TemplateField HeaderText="名片发送">
                                <ItemTemplate>
                                   <a href="javascript: confirm('点击此处则以短信形式将名片信息发送给<%=((Hashtable)Session["tmpuser"])["nickname"] %>，请确定！\r\n短信格式如下:\r\n<%#Eval("employeename") %>\r\n职务:<%#Eval("duty") %>\r\n手机:<%#Eval("mobile") %>\r\n电话:<%#Eval("phone") %>\r\n传真:<%#Eval("fax") %>');void(0);">点击发送</a>
                                    <asp:ImageButton ID="ImageButton1" Visible="false" ImageUrl="~/resources/images/icons/cross.png" AlternateText="删除" 
                                    CommandName="sendBusinessCard" CommandArgument='<%#Eval("employeeid") %>'  runat="server"
                                    OnClientClick="return"/>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                    <ui:gv ID="GV" runat="server" />
                </div>

            </div>
        </div>
    </form>
</asp:Content>

